/*     */ package eos.moe.dragoncore;
/*     */ import java.awt.Color;
/*     */ import java.util.Locale;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.gui.FontRenderer;
/*     */ import net.minecraft.client.renderer.GlStateManager;
/*     */ import net.minecraft.client.renderer.texture.TextureManager;
/*     */ import net.minecraft.client.resources.IResourceManager;
/*     */ import net.minecraft.client.resources.IResourceManagerReloadListener;
/*     */ import net.minecraft.client.settings.GameSettings;
/*     */ import net.minecraft.util.ResourceLocation;
/*     */ 
/*     */ public class wv extends FontRenderer {
/*     */   private static wv t;
/*     */   private FontRenderer d;
/*     */   private boolean z;
/*     */   private float i;
/*     */   private float w;
/*     */   private float q;
/*     */   private float g;
/*     */   
/*     */   public wv(GameSettings gameSettings, TextureManager textureManager, FontRenderer fontRenderer) {
/*  23 */     super(gameSettings, fontRenderer.field_111273_g, textureManager, fontRenderer.field_78293_l);
/*  24 */     this.d = fontRenderer;
/*     */     try {
/*  26 */       Class.forName("Config");
/*  27 */       this.z = true;
/*  28 */     } catch (Exception exception) {
/*  29 */       this.z = false;
/*     */     } 
/*     */   }
/*     */   
/*     */   public wv(FontRenderer fontRenderer, ResourceLocation resourceLocation) {
/*  34 */     super((Minecraft.func_71410_x()).field_71474_y, resourceLocation, (Minecraft.func_71410_x()).field_71446_o, fontRenderer.field_78293_l);
/*  35 */     this.d = fontRenderer;
/*     */     try {
/*  37 */       Class.forName("Config");
/*  38 */       this.z = true;
/*  39 */     } catch (Exception exception) {
/*  40 */       this.z = false;
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void func_78255_a(String str, boolean bool) {
/*  47 */     for (int i = 0; i < str.length(); i++) {
/*  48 */       char c = str.charAt(i);
/*  49 */       mca.eos/moe/dragoncore/xfa eos/moe/dragoncore/xfa = null;
/*     */       
/*  51 */       if (c == '§' && i + 1 < str.length() && (eos/moe/dragoncore/xfa = mca.q.v(str.charAt(i + 1))) != null && eos/moe/dragoncore/xfa.v()) {
/*  52 */         if (!bool) {
/*  53 */           GlStateManager.func_179131_c(1.0F, 1.0F, 1.0F, this.g);
/*  54 */           hw.v(eos/moe/dragoncore/xfa.v());
/*  55 */           sa.v(this.field_78295_j + eos/moe/dragoncore/xfa.h(), this.field_78296_k + eos/moe/dragoncore/xfa.z(), eos/moe/dragoncore/xfa.c(), eos/moe/dragoncore/xfa.s(), eos/moe/dragoncore/xfa
/*  56 */               .k(), eos/moe/dragoncore/xfa.d(), eos/moe/dragoncore/xfa
/*  57 */               .y(), eos/moe/dragoncore/xfa.t());
/*  58 */           GlStateManager.func_179131_c(this.i, this.w, this.q, this.g);
/*     */         } 
/*  60 */         this.field_78295_j += eos/moe/dragoncore/xfa.v() + 1.0F;
/*  61 */         i++;
/*  62 */       } else if (c == '§' && i + 1 < str.length()) {
/*  63 */         if (i + 7 < str.length() && str.charAt(i + 1) == '#') {
/*  64 */           String str1 = str.substring(i + 2, i + 8);
/*  65 */           boolean bool1 = true;
/*  66 */           for (char c1 : str1.toCharArray()) {
/*  67 */             int j = "0123456789abcdefABCDEF".indexOf(c1);
/*  68 */             if (j == -1) {
/*  69 */               bool1 = false;
/*     */               break;
/*     */             } 
/*     */           } 
/*  73 */           if (bool1) {
/*  74 */             this.field_78303_s = false;
/*  75 */             this.field_78302_t = false;
/*  76 */             this.field_78299_w = false;
/*  77 */             this.field_78300_v = false;
/*  78 */             this.field_78301_u = false;
/*  79 */             Color color = Color.decode("0x" + str1);
/*  80 */             float f = 3.3F;
/*  81 */             int j = 42;
/*  82 */             if (bool)
/*     */             {
/*  84 */               color = new Color((int)Math.max(j, color.getRed() / f), (int)Math.max(j, color.getBlue() / f), (int)Math.max(j, color.getGreen() / f), (int)this.field_78305_q);
/*     */             }
/*  86 */             setColor(color.getRed() / 255.0F, color.getGreen() / 255.0F, color.getBlue() / 255.0F, this.field_78305_q);
/*  87 */             this.field_78304_r = color.getRGB();
/*  88 */             i += 7;
/*     */           } 
/*     */         } else {
/*  91 */           int j = "0123456789abcdefklmnor".indexOf(String.valueOf(str.charAt(i + 1)).toLowerCase(Locale.ROOT).charAt(0));
/*  92 */           if (j < 16) {
/*  93 */             this.field_78303_s = false;
/*  94 */             this.field_78302_t = false;
/*  95 */             this.field_78299_w = false;
/*  96 */             this.field_78300_v = false;
/*  97 */             this.field_78301_u = false;
/*  98 */             if (j < 0 || j > 15) {
/*  99 */               j = 15;
/*     */             }
/* 101 */             if (bool) {
/* 102 */               j += 16;
/*     */             }
/* 104 */             int k = this.field_78285_g[j];
/* 105 */             this.field_78304_r = k;
/* 106 */             setColor((k >> 16) / 255.0F, (k >> 8 & 0xFF) / 255.0F, (k & 0xFF) / 255.0F, this.field_78305_q);
/* 107 */           } else if (j == 16) {
/* 108 */             this.field_78303_s = true;
/* 109 */           } else if (j == 17) {
/* 110 */             this.field_78302_t = true;
/* 111 */           } else if (j == 18) {
/* 112 */             this.field_78299_w = true;
/* 113 */           } else if (j == 19) {
/* 114 */             this.field_78300_v = true;
/* 115 */           } else if (j == 20) {
/* 116 */             this.field_78301_u = true;
/* 117 */           } else if (j == 21) {
/* 118 */             this.field_78303_s = false;
/* 119 */             this.field_78302_t = false;
/* 120 */             this.field_78299_w = false;
/* 121 */             this.field_78300_v = false;
/* 122 */             this.field_78301_u = false;
/* 123 */             setColor(this.field_78291_n, this.field_78292_o, this.field_78306_p, this.field_78305_q);
/*     */           } 
/* 125 */           i++;
/*     */         } 
/* 127 */       } else if ((eos/moe/dragoncore/xfa = mca.q.v(c)) != null && !eos/moe/dragoncore/xfa.v()) {
/* 128 */         if (!bool) {
/* 129 */           GlStateManager.func_179131_c(1.0F, 1.0F, 1.0F, this.g);
/* 130 */           hw.v(eos/moe/dragoncore/xfa.v());
/* 131 */           sa.v(this.field_78295_j + eos/moe/dragoncore/xfa.h(), this.field_78296_k + eos/moe/dragoncore/xfa.z(), 0.0F, 0.0F, eos/moe/dragoncore/xfa
/* 132 */               .k(), eos/moe/dragoncore/xfa.d(), eos/moe/dragoncore/xfa
/* 133 */               .k(), eos/moe/dragoncore/xfa.d());
/* 134 */           GlStateManager.func_179131_c(this.i, this.w, this.q, this.g);
/*     */         } 
/* 136 */         this.field_78295_j += eos/moe/dragoncore/xfa.v() + 1.0F;
/*     */       } else {
/*     */         
/* 139 */         int j = "ÀÁÂÈÊËÍÓÔÕÚßãõğİıŒœŞşŴŵžȇ\000\000\000\000\000\000\000 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\000ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñÑªº¿®¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αβΓπΣσμτΦΘΩδ∞∅∈∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\000".indexOf(c);
/* 140 */         if (this.field_78303_s && j != -1) {
/* 141 */           int k = func_78263_a(c);
/*     */           
/*     */           while (true) {
/* 144 */             j = this.field_78289_c.nextInt("ÀÁÂÈÊËÍÓÔÕÚßãõğİıŒœŞşŴŵžȇ\000\000\000\000\000\000\000 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\000ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñÑªº¿®¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αβΓπΣσμτΦΘΩδ∞∅∈∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\000".length());
/* 145 */             char c1 = "ÀÁÂÈÊËÍÓÔÕÚßãõğİıŒœŞşŴŵžȇ\000\000\000\000\000\000\000 !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\000ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñÑªº¿®¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αβΓπΣσμτΦΘΩδ∞∅∈∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\000".charAt(j);
/* 146 */             if (k == func_78263_a(c1))
/* 147 */             { c = c1; break; } 
/*     */           } 
/* 149 */         }  float f1 = (j == -1 || this.field_78293_l || this.z) ? 0.5F : 1.0F;
/* 150 */         boolean bool1 = ((c == '\000' || j == -1 || this.field_78293_l) && bool);
/* 151 */         if (bool1) {
/* 152 */           this.field_78295_j -= f1;
/* 153 */           this.field_78296_k -= f1;
/*     */         } 
/* 155 */         float f2 = func_181559_a(c, this.field_78301_u);
/* 156 */         if (bool1) {
/* 157 */           this.field_78295_j += f1;
/* 158 */           this.field_78296_k += f1;
/*     */         } 
/* 160 */         if (this.field_78302_t) {
/* 161 */           this.field_78295_j += f1;
/* 162 */           if (bool1) {
/* 163 */             this.field_78295_j -= f1;
/* 164 */             this.field_78296_k -= f1;
/*     */           } 
/* 166 */           func_181559_a(c, this.field_78301_u);
/* 167 */           this.field_78295_j -= f1;
/* 168 */           if (bool1) {
/* 169 */             this.field_78295_j += f1;
/* 170 */             this.field_78296_k += f1;
/*     */           } 
/* 172 */           f2++;
/*     */         } 
/*     */         
/* 175 */         doDraw(f2);
/*     */       } 
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void setColor(float f1, float f2, float f3, float f4) {
/* 202 */     this.i = f1;
/* 203 */     this.w = f2;
/* 204 */     this.q = f3;
/* 205 */     this.g = f4;
/* 206 */     super.setColor(f1, f2, f3, f4);
/*     */   }
/*     */   
/*     */   public boolean hasData(char c, boolean bool) {
/* 210 */     mca.eos/moe/dragoncore/xfa eos/moe/dragoncore/xfa = mca.q.v(c);
/* 211 */     if (eos/moe/dragoncore/xfa != null && (!eos/moe/dragoncore/xfa.v() || bool)) {
/* 212 */       return true;
/*     */     }
/* 214 */     return false;
/*     */   }
/*     */   
/*     */   public int getFontTextureCharWidth(char c, boolean bool) {
/* 218 */     mca.eos/moe/dragoncore/xfa eos/moe/dragoncore/xfa = mca.q.v(c);
/* 219 */     if (eos/moe/dragoncore/xfa != null && (!eos/moe/dragoncore/xfa.v() || bool)) {
/* 220 */       return (int)eos/moe/dragoncore/xfa.v() + 1;
/*     */     }
/* 222 */     return func_78263_a(c);
/*     */   }
/*     */   
/*     */   public int func_78256_a(String str) {
/* 226 */     if (str == null) {
/* 227 */       return 0;
/*     */     }
/* 229 */     int i = 0;
/* 230 */     boolean bool = false;
/* 231 */     mca mca = mca.q;
/*     */     
/* 233 */     for (int j = 0; j < str.length(); j++) {
/* 234 */       char c = str.charAt(j);
/* 235 */       int k = func_78263_a(c);
/*     */       
/*     */       mca.eos/moe/dragoncore/xfa eos/moe/dragoncore/xfa;
/*     */       
/* 239 */       if (k < 0 && j < str.length() - 1 && (eos/moe/dragoncore/xfa = mca.v(str.charAt(j + 1))) != null && eos/moe/dragoncore/xfa.v()) {
/* 240 */         j++;
/* 241 */         i = (int)(i + eos/moe/dragoncore/xfa.v());
/*     */       
/*     */       }
/* 244 */       else if (k < 0 && j < str.length() - 1 && str.charAt(j + 1) == '#') {
/* 245 */         j += 7;
/*     */       }
/*     */       else {
/*     */         
/* 249 */         if (k < 0 && j < str.length() - 1) {
/* 250 */           j++;
/* 251 */           c = str.charAt(j);
/*     */           
/* 253 */           if (c != 'l' && c != 'L') {
/* 254 */             if (c == 'r' || c == 'R') {
/* 255 */               bool = false;
/*     */             }
/*     */           } else {
/* 258 */             bool = true;
/*     */           } 
/*     */           
/* 261 */           k = 0;
/*     */         } 
/* 263 */         mca.eos/moe/dragoncore/xfa eos/moe/dragoncore/xfa1 = mca.v(c);
/* 264 */         if (k > 0 && eos/moe/dragoncore/xfa1 != null && !eos/moe/dragoncore/xfa1.v()) {
/* 265 */           i = (int)(i + eos/moe/dragoncore/xfa1.v());
/*     */         } else {
/* 267 */           i += k;
/*     */         } 
/*     */ 
/*     */         
/* 271 */         if (bool && k > 0) {
/* 272 */           i++;
/*     */         }
/*     */       } 
/*     */     } 
/* 276 */     return i;
/*     */   }
/*     */ 
/*     */   
/*     */   public String func_78262_a(String str, int i, boolean bool) {
/* 281 */     StringBuilder stringBuilder = new StringBuilder();
/* 282 */     int j = 0;
/* 283 */     int k = bool ? (str.length() - 1) : 0;
/* 284 */     int m = bool ? -1 : 1;
/* 285 */     boolean bool1 = false;
/* 286 */     boolean bool2 = false;
/* 287 */     mca mca = mca.q;
/*     */     
/* 289 */     int n = 0;
/*     */     int i1;
/* 291 */     for (i1 = k; i1 >= 0 && i1 < str.length() && j < i; i1 += m) {
/* 292 */       char c = str.charAt(i1);
/* 293 */       int i2 = func_78263_a(c);
/*     */       
/* 295 */       mca.eos/moe/dragoncore/xfa eos/moe/dragoncore/xfa = mca.v(c);
/*     */       
/* 297 */       if (n > 0) {
/* 298 */         n--;
/* 299 */       } else if (bool1 && eos/moe/dragoncore/xfa != null && eos/moe/dragoncore/xfa.v()) {
/* 300 */         bool1 = false;
/* 301 */         j = (int)(j + eos/moe/dragoncore/xfa.v());
/* 302 */         if (bool2) {
/* 303 */           j++;
/*     */         }
/* 305 */       } else if (bool1 && c == '#') {
/* 306 */         bool1 = false;
/* 307 */         n = 6;
/* 308 */       } else if (bool1) {
/* 309 */         bool1 = false;
/*     */         
/* 311 */         if (c != 'l' && c != 'L') {
/* 312 */           if (c == 'r' || c == 'R') {
/* 313 */             bool2 = false;
/*     */           }
/*     */         } else {
/* 316 */           bool2 = true;
/*     */         } 
/* 318 */       } else if (i2 < 0) {
/* 319 */         bool1 = true;
/*     */       } else {
/* 321 */         j += i2;
/*     */         
/* 323 */         if (bool2) {
/* 324 */           j++;
/*     */         }
/*     */       } 
/*     */ 
/*     */       
/* 329 */       if (j > i) {
/*     */         break;
/*     */       }
/*     */       
/* 333 */       if (bool) {
/* 334 */         stringBuilder.insert(0, c);
/*     */       } else {
/* 336 */         stringBuilder.append(c);
/*     */       } 
/*     */     } 
/*     */     
/* 340 */     return stringBuilder.toString();
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void func_110549_a(IResourceManager iResourceManager) {
/* 405 */     super.func_110549_a(iResourceManager);
/*     */   }
/*     */   
/*     */   public static void v() {
/* 409 */     Minecraft a = Minecraft.func_71410_x();
/*     */ 
/*     */     
/* 412 */     t = new wv(a.field_71474_y, a.field_71446_o, a.field_71466_p);
/* 413 */     if (a.field_71474_y.field_74363_ab != null) {
/* 414 */       t.func_78264_a(a.func_152349_b());
/* 415 */       t.func_78275_b(a.field_135017_as.func_135044_b());
/*     */     } 
/* 417 */     a.field_110451_am.func_110542_a((IResourceManagerReloadListener)t);
/*     */   }
/*     */   
/*     */   public static wv v() {
/* 421 */     return t;
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\wv.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */